package com.example.myshop.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.*;

import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@EqualsAndHashCode(callSuper = false)
@TableName("t_comment")
public class Comment {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;// '主键id',
    @JsonSerialize(using = ToStringSerializer.class)
    private Long uid;//'用户id',
    @JsonSerialize(using = ToStringSerializer.class)
    private Long bid;//'商家id',
    @JsonSerialize(using = ToStringSerializer.class)
    private Long oid; // '订单id'
    @JsonSerialize(using = ToStringSerializer.class)
    private Long pid;// '商品id',
    private String pComment; //'商品的评价',
    private String bComment; // '商家的评价',
    private Integer judgeMark; //'商品的评分',
    private String reply;//'商家的回复'
    private String createdUser;
    private Date createdTime ;
    private String  modifiedUser;
    private Date modifiedTime;
}
